import request from '@/utils/request'
import defaultSettings from '@/settings'

export const apiUrlConfig = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/bsPubliccontrol/participantManagement/participantMaintenanceQuery/search`,
}

export function detailsQuery(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/bsPubliccontrol/participantManagement/participantMaintenanceQuery/detail?bankCode=${data.bankCode}`,
        method: 'get',
    })
}
// 审批接口
export function submit(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/bsPubliccontrol/participantManagement/participantMaintenanceQuery/updateSave`,
        method: 'post',
        data: data
    })
}

// 删除接口
export function delConfigInfo(data) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/bsPubliccontrol/participantManagement/participantMaintenanceQuery/delete`,
    method: 'post',
    data: data
  })
}